package com.tenglong.teacher.ui.homepage;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

public class SignItemViewGroup extends RelativeLayout {
    private boolean isIntercept = false;
    public SignItemViewGroup(Context context) {
        super(context);
    }

    public SignItemViewGroup(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public SignItemViewGroup(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        if (isIntercept)return true;
        return super.onInterceptTouchEvent(ev);
    }
    public void setChildIsClick(boolean isIntercept){
        this.isIntercept = isIntercept;
    }
}
